//导入vue-router
import {createRouter,createWebHashHistory} from 'vue-router'
//创建路由
const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:()=>import('./views/home.vue')
        },
        {
            path:'/category',
            component:()=>import('./views/category.vue')
        },
        {
            path:'/cart',
            component:()=>import('./views/cart.vue')
        },
        {
            path:'/profile',
        }
    ]
})